chrome.extension.onRequest.addListener(
  function(request, sender, sendResponse) {
	var el=document.getElementsByTagName('*');
	if(request.switch == "off") {
		$('.cfdebug').css('display', 'none');
		$('#leftcol').css('display', 'none');
		$('#header_area').css('display', 'none');
		$('#footer_area').css('display', 'none');
		document.getElementById('rightcol').style.margin=0;
		document.body.style.background='transparent';
	} else {
		$('.cfdebug').css('display', 'block');
		$('#leftcol').css('display', 'block');
		$('#header_area').css('display', 'block');
		$('#footer_area').css('display', 'block');
		document.getElementById('rightcol').style.marginLeft='180px';
		document.body.style.background='white url(/common_app/elements/img/bg_m1.gif) 0 0 repeat-y';
	}
	sendResponse({});
  }
);

